package lambda;

public class LambdaMain {
    public static void main(String[] args) {
        /**
         * 策略模式
         */
     //先制定策略
        ComputerMethod<Double> method=(x,y)->x*y;

        Computer<Double> computer=(a,b,c)->c.computerMethod(a,b);

        Double result = computer.computer(12.3, 45.6, method);

        System.out.println(result);


    }




}
